import request from '@/router/axios';
export const getModelList = () => {
  return request({
    url: '/api/blade-flow/model/modelList',
    method: 'get',
    params: {}
  })
}

export const getMenuList = () => {
  return request({
    url: '/api/blade-system/menu/getMenuList',
    method: 'get',
    params: {}
  })
}


export const getPostIdTrees = () => {
  return request({
    url: '/api/blade-system/position/tree',
    method: 'get',
    params: {}
  })
}


export const getUserList = () => {
  return request({
    url: '/api/blade-user/getAllUserIds',
    method: 'get',
    params: {}
  })
}


export const getPlanList = () => {
  return request({
    url: '/api/projectphasestask/list',
    method: 'get',
    params: {}
  })
}


export const submit = (data) => { //
  return request({
    url: '/api/blade-system/flowconfig/submit',
    method: 'post',
    data: data
  })
}

export const getList = (current, size, data) => { //
  return request({
    url: '/api/blade-system/flowconfig/page',
    method: 'get',
    params: {
      current,
      size,
      ...data
    }
  })
}
export const detail = (id) => { //
  return request({
    url: '/api/blade-system/flowconfig/detail',
    method: 'get',
    params: {id}
  })
}

//批量删除
export const remove = (ids) => { //
  return request({
    url: '/api/blade-system/flowconfig/remove',
    method: 'post',
    params: {
      ids
    }
  })
}
